//
//  ExclusiveDetailViewController.m
//  Music
//
//  Created by dllo on 16/6/8.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ExclusiveDetailViewController.h"

@interface ExclusiveDetailViewController ()<UIWebViewDelegate>
@property(nonatomic,retain)UIWebView  *webView;
@property(nonatomic,assign)NSInteger  count;
@end

@implementation ExclusiveDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor  whiteColor];
    self.navigationController.navigationBar.barStyle = 1;
    self.navigationController.navigationBar.tintColor = [UIColor  whiteColor];
    self.count = [self.numId  integerValue];
    [self  getOneData];

}
-(void)getOneData
{
    NSString  *str = self.url  ;
    self.webView = [[UIWebView  alloc]initWithFrame:CGRectMake(0, 0, Screenwidth, Screenheight+40)];
    self.webView.scrollView.bounces = NO;
    [self.webView  sizeToFit ];
    NSURLRequest  *request = [NSURLRequest  requestWithURL:[NSURL  URLWithString:str]];
    [self.webView  loadRequest:request];
    self.webView.delegate = self;
    [self.view  addSubview:self.webView];
   
}

- (void)webViewDidFinishLoad:(UIWebView *)webView
{
    
    
    [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('share-btn xm-img-share')[1].style.display = 'NONE'"];
    
    [webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('xiami-share-btn').style.display = 'NONE'"];
    [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('input-comment')[0].style.display = 'NONE'"];
    [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('input-bar')[0].style.display = 'NONE'"];
     [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('xiami-comment-hd zjsf-main-color')[0].style.display = 'NONE'"];
     [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('input-bar')[0].style.display = 'NONE'"];
    [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('xiami-fixed-bar')[0].style.display = 'NONE'"];
    [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('xiami-fixed-bar')[0].style.display = 'NONE'"];
   
    [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('header-goodsPrice')[0].style.display = 'NONE'"];
        
        [webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('btn-rightDesc-show-benefits').style.display = 'NONE'"];
        [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('txt')[1].style.display = 'NONE'"];
        
        [webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('fans-list-fold').style.display = 'NONE'"];
        [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('list-info')[0].style.display = 'NONE'"];
        [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('list-info')[1].style.display = 'NONE'"];
        [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('list-info')[2].style.display = 'NONE'"];
        
        [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('fans-list-fold')[0].style.display = 'NONE'"];
        [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('write-wrap')[0].style.display = 'NONE'"];
        
         [webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('btn-albumComments-leave-comments').style.display = 'NONE'"];
         [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('rightDescModule')[0].style.display = 'NONE'"];
        
    

        
        [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('klm-music-section')[0].style.display = 'NONE'"];
         [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('klm-video')[0].style.display = 'NONE'"];
         [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('klm-lottery-btn')[0].style.display = 'NONE'"];
    
        [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('klm-video')[0].style.display = 'NONE'"];
        [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByClassName('klm-lottery-btn')[0].style.display = 'NONE'"];
   


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
